#ifndef __DICTVECTOR_H__
#define __DICTVECTOR_H__

#include <string>
#include <vector>

using std::string;
using std::vector;

class Dictionary;

class Record{
public:
    Record(const string & word, int frequency);
    friend class Dictionary;
private:
    string _word;
    int _frequency;
};

class Dictionary{
public:
    void read(const string & filename);
    void store(const string & filename);

    string checkWord(string & word);
    void insertWord(const string & word);
private:
    vector<Record> _dict;
};

#endif